home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 1996 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
-
- // Events.h : main header file for the EVENTS application
- //
-
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
-
- #include "resource.h" // main symbols
-
- //class CTCEventsDlg;
- class CSdiDialog;
- /////////////////////////////////////////////////////////////////////////////
- // CTCEventsApp:
- // See Events.cpp for the implementation of this class
- //
-
- class CTCEventsApp : public CWinApp
- {
- public:
- CTCEventsApp();
-
- CSdiDialog* GetDialog() const { return (CSdiDialog*)m_pMainWnd; }
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTCEventsApp)
- public:
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
-
- // Implementation
- //{{AFX_MSG(CTCEventsApp)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- // Generated OLE dispatch map functions
- //{{AFX_DISPATCH(CTCEventsApp)
- afx_msg void BeforeExit(LPDISPATCH TheApp, BOOL FAR* Cancel);
- afx_msg void DrawingNew(LPDISPATCH WhichDrawing);
- afx_msg void DrawingOpen(LPDISPATCH WhichDrawing);
- afx_msg void DrawingActivate(LPDISPATCH WhichDrawing);
- afx_msg void DrawingDeactivate(LPDISPATCH WhichDrawing);
- afx_msg void DrawingBeforeClose(LPDISPATCH WhichDrawing, BOOL FAR* Cancel);
- afx_msg void DrawingBeforeSave(LPDISPATCH WhichDrawing, BOOL FAR* SaveAs, BOOL FAR* Cancel);
- afx_msg void WindowResize(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
- afx_msg void WindowActivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
- afx_msg void WindowDeactivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
- afx_msg void MouseDown(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y);
- afx_msg void MouseUp(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y);
- afx_msg void MouseMove(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, long Shift, long X, long Y);
- afx_msg void BeforeDoubleClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
- afx_msg void BeforeRightClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
- afx_msg void SelectionChange(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel);
- afx_msg void CommandBarControlHit(LPDISPATCH WhichControl, BOOL FAR* Cancel);
- afx_msg void CommandBarControlStatus(LPDISPATCH WhichControl);
- afx_msg void RunTool(LPDISPATCH WhichTool);
- afx_msg void PointSnapped(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, long XScreen, long YScreen, LPDISPATCH PointRaw, LPDISPATCH PointSnapped);
- afx_msg void PointPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
- afx_msg void RectanglePick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
- afx_msg void PolygonPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
- afx_msg void ViewBeforeRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
- afx_msg void ViewAfterRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
- afx_msg void VirtualIntersectionPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH PickResult, BOOL WasCanceled);
- afx_msg void CommandBarControlDone(LPDISPATCH WhichControl);
- afx_msg void Drop(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Selection);
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
- DECLARE_INTERFACE_MAP()
-
-
- // DUAL_SUPPORT_START
- // add declaration of AppEvents implementation
- // You need one entry here for each entry in the
- // interface statement of the ODL, plus the entries for a
- // dispatch interface. The BEGIN_DUAL_INTERFACE_PART
- // macro in mfcdual.h automatically generates the IDispatch
- // entries for you.
- // Each entry with the "propput" attribute needs a function
- // named "put_<property name>". Each entry with the "propget"
- // attribute needs a function named "get_<property name>".
- // You can pull these function prototypes from the header file
- // generated by MKTYPLIB.
- BEGIN_DUAL_INTERFACE_PART(AppEvents, IAppEvents)
- STDMETHOD(BeforeExit)(THIS_ IApplication* TheApp, IMSI_BOOL* Cancel);
- STDMETHOD(DrawingNew)(THIS_ IDrawing* WhichDrawing);
- STDMETHOD(DrawingOpen)(THIS_ IDrawing* WhichDrawing);
- STDMETHOD(DrawingActivate)(THIS_ IDrawing* WhichDrawing);
- STDMETHOD(DrawingDeactivate)(THIS_ IDrawing* WhichDrawing);
- STDMETHOD(DrawingBeforeClose)(THIS_ IDrawing* WhichDrawing, IMSI_BOOL* Cancel);
- STDMETHOD(DrawingBeforeSave)(THIS_ IDrawing* WhichDrawing, IMSI_BOOL* SaveAs, IMSI_BOOL* Cancel);
- STDMETHOD(WindowResize)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
- STDMETHOD(WindowActivate)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
- STDMETHOD(WindowDeactivate)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
- STDMETHOD(MouseDown)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, ImsiMouseButton Button, long Shift, long X, long Y);
- STDMETHOD(MouseUp)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, ImsiMouseButton Button, long Shift, long X, long Y);
- STDMETHOD(MouseMove)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, long Shift, long X, long Y);
- STDMETHOD(BeforeDoubleClick)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel, IMSI_BOOL* Cancel);
- STDMETHOD(BeforeRightClick)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel, IMSI_BOOL* Cancel);
- STDMETHOD(SelectionChange)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel);
- STDMETHOD(CommandBarControlHit)(THIS_ CommandBarControl* WhichControl, IMSI_BOOL* Cancel);
- STDMETHOD(CommandBarControlStatus)(THIS_ CommandBarControl* WhichControl);
- STDMETHOD(RunTool)(THIS_ Tool* WhichTool);
- STDMETHOD(PointSnapped)(THIS_ IDrawing* WhichDrawing, View* WhichView, long XScreen, long YScreen, IVertex* PointRaw, IVertex* PointSnapped);
- STDMETHOD(PointPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
- STDMETHOD(RectanglePick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
- STDMETHOD(PolygonPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
- STDMETHOD(ViewBeforeRedraw)(THIS_ IDrawing* WhichDrawing, View* WhichView);
- STDMETHOD(ViewAfterRedraw)(THIS_ IDrawing* WhichDrawing, View* WhichView);
- STDMETHOD(VirtualIntersectionPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
- STDMETHOD(CommandBarControlDone)(THIS_ CommandBarControl* WhichControl);
- STDMETHOD(Drop)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel);
- END_DUAL_INTERFACE_PART(AppEvents)
-
- // add declaration of ISupportErrorInfo implementation
- // to indicate we support the OLE Automation error object
- DECLARE_DUAL_ERRORINFO()
- // DUAL_SUPPORT_END
- };
-
-
- /////////////////////////////////////////////////////////////////////////////
-